﻿
@{
    ViewBag.Title = "Index";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>Index</h2>
<h1>通过@@html.Partial 使用</h1>
@Html.Partial("~/Views/Shared/_PartialPageWidget.cshtml")
<h1>通过@@html.renderpartial使用</h1>
@{ 
    Html.RenderPartial("~/Views/Shared/_PartialPageWidget.cshtml");
}